package com.qf.day08;

import java.util.Random;

/**
 * 剑
 */
public class Sword extends Weapon{
    private String color;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Sword{" +
                "color='" + color + '\'' +
                "} " + super.toString();
    }

    public Sword() {
    }

    public Sword(String name, int weight, String type, String color) {
        super(name, weight, type);
        this.color = color;
    }

}
